package org.casscommunity.sights.client.widget.editor;

import org.casscommunity.sights.shared.domain.PlaceProxy;

import com.google.gwt.core.client.GWT;
import com.google.gwt.editor.client.Editor;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Widget;

public class PlaceEditor extends Composite implements Editor<PlaceProxy> {

	interface PlaceEditorBinder extends UiBinder<Widget, PlaceEditor> {}
	private static PlaceEditorBinder uiBinder = GWT.create(PlaceEditorBinder.class);

	@UiField
	EditorDecorator<String> title;

	@UiField
	EditorDecorator<String> description;
	
	@UiField
	EditorDecorator<String> address;
	
	@UiField
	EditorDecorator<String> webAddress;
	
	@UiField
	EditorDecorator<String> hours;
	
	public PlaceEditor() {
		initWidget(uiBinder.createAndBindUi(this));
	}
	
}
